<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
</head>
<body>
    <div id="app">
        <h2>{{ message.toUpperCase() }}</h2>
        <h2>水果的总价是： {{ price * total }}元</h2>
    </div>


<!--引入vue文件-->
<script src="https://unpkg.com/vue@3/dist/vue.global.js"></script>
<script>
    const app = Vue.createApp({
        data() {
            return {
                message: 'fruit',
                price: 5,
                total: 260
            }
        }
    }).mount('#app');

</script>

</body>
</html>
